import random
print(
    """
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
             welcome to the game
       Pyinstaller:pip install pyinstaller
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    """
)
level = int(input("难度:(1（0~30），2（30~60），3（60~90）)"))
luckynum = random.randint(0,level)
guess = int(input("输入数字："))
while True:
    if guess == luckynum:
        print("right")
        break
    else:
        print("wrong")
        if guess > luckynum:
            guess = int(input("BIG"))
        else:
            guess = int(input("SMALL"))